package cn.edu.ctbu.labtest.core;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


@Data

public class PageUtils implements Serializable {

    private static final long serialVersionUID = 1L;
    private int total;
    private List<?> rows;


    public PageUtils(List<?> list, Long total) {
        this.rows = list;
        this.total = total.intValue();
    }


    public PageUtils(List<?> list, int total) {
        this.rows = list;
        this.total = total;
    }


}
